home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d1
/
batchlrn.arc
/
BATDO-1.HLP
< prev
next >
Wrap
Text File
|
1991-06-17
|
1KB
|
24 lines
YOU'RE IN FOR IT NOW! WE'RE GOING TO GO "BATCHING" AND WHEN YOU'RE DONE IT
WILL START GETTING CLEARER! LET'S START WITH SOME EASY ONES THEN..."MOVE"!
The following command is a candidate for a batch file
because it requires so much typing. You could call it
DIRDATE.BAT because it sorts the directory listing on
the date column using the SORT command (See SORT.HLP)
& sends the listing to the printer(a file also works).
>COPYCON: DIRDATE.BAT
DIR 1 SORT/+33>PRN
CTRL Z <RET>
In this example, you are on the verge of actually pro-
gramming the computer. DOS batch-file processing isn't
considered a programming language>>(we disagree)<< but
you can see the power that is available when you using
batch-file subcommands to automate keystrokes.
Another similar file is NONCOM.BAT; it will display a
directory listing (& reports vol.)of files NOT ending
with extension .COM: (it's a simple two-liner)
>COPY CON:NONCOM.BAT
DIR | FIND/V"COM" (now <F6> or Ctrl Z)